package com.example.demo.utils.wx;

public class WxConfig {

    public final static String MCH_ID = "1498202322";//商户号

    /**
     * 服务号相关信息
     */
//    public final static String domain = "http://squning.iok.la/";
//    public final static String APP_ID = "wx2bfba12a16bc8d5f";//测试公众号
//    public final static String APP_SECRET = "20f584e1b4c51b9ebf42b183d1778f9e";//测试公众号

    public final static String APP_ID = "wx0878c41d5cd9b98e";//公众号
    public final static String APP_SECRET = "ef6802271ce1bf8fa5c8aa60babdfed0";//公众号
    public final static String domain = "http://www.motaimall.com/";

    // 操作密码 huokexiuE1#
    // API秘钥原文 eone_huokexiu
    public final static String API_KEY = "n9UBMMAxC3xqwhrD814OmPRqMWJGTNFt";//商户平台API密钥

    public final static String LOGIN_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APP_ID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";

    /**
     * oauth2授权接口(GET)
     */
    public final static String OAUTH2_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=APPSECRET&code=APPCODE&grant_type=authorization_code";

    /**
     * 用户详细信息 2.0认证方式
     */
    public final static String OAUTH_INFO = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

    /**
     * 获取token
     */
    public final static String GET_ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";

    /**
     * 用户详细信息(关注公众号)
     */
    public final static String OAUTH_INFO_SUBSCRIBE = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

    /**
     * 获取媒体文件
     */
    public final static String GET_MEDIA_FILE = "http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=ACCESS_TOKEN&media_id=MEDIA_ID";

    /**
     * 微信JS接口的临时票据
     */
    public final static String GET_JS_API_TICKET_URL = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";

    /**
     * 发送模板消息
     */
    public final static String TEMPLATE_SEND_URL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN";

    /**
     * 微信支付接口地址
     */
    public final static String UNIFIED_ORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";

    /**
     * 微信公众号支付回调接口
     */
    public final static String NOTIFY_URL = "http://www.motaimall.com/pay/wxPayNotify";

    /**
     * 微信付款到个人
     */
    public final static String TRANSFERS_PAY = "https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers";

}